using Business. InboundAppointmentsManagement;
using Business. InboundAppointmentsManagement.Dto;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;
using Volo.Abp.AspNetCore.Mvc;

namespace Business.Controllers
{
    [RemoteService]
    [Area("Business")]
    [Route("api/business/InboundAppointments")]
    public class  InboundAppointmentsController : AbpController
    {
        private readonly IInboundAppointmentsAppService _InboundAppointmentsAppService;

        public  InboundAppointmentsController(IInboundAppointmentsAppService  InboundAppointmentsAppService)
        {
            _InboundAppointmentsAppService =  InboundAppointmentsAppService;
        }

        [HttpPost]
        [Route("data-post")]
        public Task< InboundAppointmentsDto> DataPost(CreateOrUpdateInboundAppointmentsDto input)
        {
            return _InboundAppointmentsAppService.DataPost(input);
        }

        [HttpPost]
        [Route("delete")]
        public Task Delete(List<Guid> ids)
        {
            return _InboundAppointmentsAppService.Delete(ids);
        }

        [HttpGet]
        [Route("{id}")]
        public Task< InboundAppointmentsDto> Get(Guid id)
        {
            return _InboundAppointmentsAppService.Get(id);
        }

        [HttpGet]
        public Task<PagedResultDto<InboundAppointmentsDto>> GetAll(GetInboundAppointmentsInputDto input)
        {
            return _InboundAppointmentsAppService.GetAll(input);
        }
    }
}
